package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_thongtin_tkb_chitiet")
public class Tbl_ThongTin_TKB_ChiTiet implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_ThongTin_TKB tKBId = null;
   private Tbl_CTDT_DM_Phong phongHocId = null;
   private Tbl_CTDT_DM_NgayTrongTuan ngayHocId = null;
   private Tbl_CTDT_DM_TietHoc tietBatDauId = null;
   private Integer soTietHoc;
   private String maCoSo;
   private Integer tuanHoc;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="TKBId")
   @ForeignKey(name="FK_tbl_ThongTin_TKB_tbl_ThongTin_TKB_ChiTiet")
   public Tbl_ThongTin_TKB getTKBId() {
	    return tKBId;
   }
   public void setTKBId(Tbl_ThongTin_TKB tKBId) {
	    this.tKBId=tKBId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="PhongHocId")
   @ForeignKey(name="FK_tbl_CTDT_DM_Phong_tbl_ThongTin_TKB_ChiTiet")
   public Tbl_CTDT_DM_Phong getPhongHocId() {
	    return phongHocId;
   }
   public void setPhongHocId(Tbl_CTDT_DM_Phong phongHocId) {
	    this.phongHocId=phongHocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="NgayHocId")
   @ForeignKey(name="FK_tbl_CTDT_DM_NgayTrongTuan_tbl_ThongTin_TKB_ChiTiet")
   public Tbl_CTDT_DM_NgayTrongTuan getNgayHocId() {
	    return ngayHocId;
   }
   public void setNgayHocId(Tbl_CTDT_DM_NgayTrongTuan ngayHocId) {
	    this.ngayHocId=ngayHocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="TietBatDauId")
   @ForeignKey(name="FK_tbl_CTDT_DM_TietHoc_tbl_ThongTin_TKB_ChiTiet")
   public Tbl_CTDT_DM_TietHoc getTietBatDauId() {
	    return tietBatDauId;
   }
   public void setTietBatDauId(Tbl_CTDT_DM_TietHoc tietBatDauId) {
	    this.tietBatDauId=tietBatDauId;
   }

   public Integer getSoTietHoc() {
   	return soTietHoc;
   }
   public void setSoTietHoc(Integer soTietHoc) {
   	this.soTietHoc= soTietHoc;
   }

   public String getMaCoSo() {
   	return maCoSo;
   }
   public void setMaCoSo(String maCoSo) {
   	this.maCoSo= maCoSo;
   }

   public Integer getTuanHoc() {
   	return tuanHoc;
   }
   public void setTuanHoc(Integer tuanHoc) {
   	this.tuanHoc= tuanHoc;
   }
}//endClass 

